
goog.provide('esn.constants');

goog.require('goog.dom');


esn.constants.ServiceId = {
  STUDENT_CLIENT: 1,
  SURVEY_CLIENT: 2
};

esn.constants.QuestionType = {
  CHECKBOX: 'checkbox',
  DATE: 'date',
  NETWORK_DRAG_DROP: 'network_drag_drop',
  INPUT_INLINE: 'inline_input',
  INPUT: 'input',
  RADIO: 'radio',
  SLIDER: 'slider'
};

esn.constants.AnswerType = {
  INPUT: '__input__',
  OTHER: '__other__'
};

esn.constants.SliderText = {
  AGREEABILITY:
      ['Strongly disagree', 'Disagree', 'Neutral', 'Agree', 'Strongly agree'],
  FREQUENCY: ['Never', 'Seldom', 'Sometimes', 'Often']
};

esn.constants.OTHER_VALUE_PREFIX = 'Other: ';

esn.constants.DEFAULT_INPUT_SIZE = 25;

esn.constants.getContinueButtonCaption = function() {
  return goog.dom.htmlToDocumentFragment('Continue to next section &raquo;');
};

esn.constants.getBackButtonCaption = function() {
  return goog.dom.htmlToDocumentFragment('&laquo; Back');
};
